{extend name="common/layout" /}
{block name="style"}{/block}
{block name="content"}
<script>
var PURL = [<?php echo $purl;?>];
</script>
<link href="__SHOP_DEFAULT__/css/layout.css" rel="stylesheet" type="text/css"/>
<script src="__SHOP_RESOURCE__/js/search_goods.js"></script>
<link href="__SHOP_DEFAULT__/css/ynwebs-main.css" rel="stylesheet" type="text/css">
<div class="brand-info">
<div class="bd">
        <div class="wrapper pos_r">
            <div class="infor">
            <div class="infor_bg"></div>
                <div class="in_div">
                    <div class="top"><img alt="" src="{$brand_int['brand_pic']}"></div>
                    <p class="tit_p"><?php echo $brand_int['brand_name'];?></p>
                    <div class="cen_d more"><?php echo $brand_int['brand_introduction'];?></div>
                    <div class="tt x_jt"></div>
                    <div class="bott_d clearfix">
                        <div class="guojia">在售商品<span>{if(!empty($goods_num))} {$goods_num} {else /} 0 {/if}</span>个</div>
                     <!--    <div class="guanzhu">
                         <p class="top_p"><?php echo $brand_int['brand_view'];?></p>
                         <p data-bid="<?php echo $brand_int['brand_id'];?>" class="bot_p"><a href="javascript:;">关注该品牌</a></p>
                     </div> -->
                    </div>
                </div>
            </div>
        </div>
        </div>
        <script>
            $(document).ready(function(){
                $(".tt").toggle(function(){
                        $(this).removeClass("x_jt");
                        $(this).addClass("s_jt");
                        $(".cen_d").removeClass("more")
                        $(".cen_d").addClass("h_124")
                    },
                    function(){
                        $(this).removeClass("s_jt");
                        $(this).addClass("x_jt");
                        $(".cen_d").removeClass("h_124")
                        $(".cen_d").addClass("more")


                    }
                );
            });
	//关注品牌
    $(document).ready(function(){
        $('.bot_p').click(function(){
            if ($(this).hasClass("favorate")) {
                $(this).removeClass("favorate");
                var a = $(this).parent().find('.top_p').text();
                $(this).parent().find('.top_p').text(parseInt(a)-1);

            } else {
                $(this).addClass("favorate");
                var a = $(this).parent().find('.top_p').text();
                $(this).parent().find('.top_p').text( parseInt(a)+1);

            }

        });
    });
        </script>
        <ul>
            <li class="cent_main_t">
            	<img width="1920" height="100%" alt="" src="{$brand_int['brand_bgpic']}"></li>
        </ul>
    
</div>
</div>

<div class="container wrapper">
    <div class="shop_con_list" id="main-nav-holder">
      <nav class="sort-bar" id="main-nav">
        <div class="nch-sortbar-array"> 排序方式：
          <ul class="array">
           	<li <?php if(!I('param.key')){?>class="selected"<?php }?>><a href="<?php echo dropParam(array('order', 'key'));?>"  title="默认排序">默认</a></li>
            <li <?php if(I('param.key') == '1'){?>class="selected"<?php }?>><a href="<?php echo (I('param.order') == '2' && I('param.key') == '1') ? replaceParam(array('key' => '1', 'order' => '1')):replaceParam(array('key' => '1', 'order' => '2')); ?>" <?php if(I('param.key') == '1'){?>class="<?php echo I('param.order') == 1 ? 'asc' : 'desc';?>"<?php }?> title="<?php echo (I('param.order') == '2' && I('param.key') == '1')? '点击按销量从低到高排序':'点击按销量从高到低排序'; ?>">销量<i></i></a></li>
            <li <?php if(I('param.key') == '2'){?>class="selected"<?php }?>><a href="<?php echo (I('param.order') == '2' && I('param.key') == '2') ? replaceParam(array('key' => '2', 'order' => '1')):replaceParam(array('key' => '2', 'order' => '2')); ?>" <?php if(I('param.key') == '2'){?>class="<?php echo I('param.order') == 1 ? 'asc' : 'desc';?>"<?php }?> title="<?php  echo (I('param.order') == '2' && I('param.key') == '2')?'点击按人气从低到高排序':'点击按人气从低到高排序'; ?>">人气<i></i></a></li>
            <li <?php if(I('param.key') == '3'){?>class="selected"<?php }?>><a href="<?php echo (I('param.order') == '2' && I('param.key') == '3') ? replaceParam(array('key' => '3', 'order' => '1')):replaceParam(array('key' => '3', 'order' => '2')); ?>" <?php if(I('param.key') == '3'){?>class="<?php echo I('param.order') == 1 ? 'asc' : 'desc';?>"<?php }?> title="<?php echo (I('param.order') == '2' && I('param.key') == '3')?'点击按价格从低到高排序':'点击按价格从高到低排序'; ?>">价格<i></i></a></li>
          </ul>
        </div>
       <!-- <div class="nch-sortbar-filter" nc_type="more-filter">
        <span class="arrow"></span>
          <ul>
          	<li><a href="<?php if (I('param.type') == 1) { echo dropParam(array('type'));} else { echo replaceParam(array('type' => '1'));}?>" <?php if (I('param.type') == 1) {?>class="selected"<?php }?>><i></i>平台自营</a></li>
            <li><a href="<?php if (I('param.gift') == 1) { echo dropParam(array('gift'));} else { echo replaceParam(array('gift' => '1'));}?>" <?php if (I('param.gift') == 1) {?>class="selected"<?php }?>><i></i>赠品</a></li>
            &lt;!&ndash; 消费者保障服务 &ndash;&gt;
            <?php if($contract_item){?>
            <?php foreach($contract_item as $citem_k=>$citem_v){ ?>
            <li><a href="<?php if (in_array($citem_k,$search_ci_arr)){ echo removeParam(array('ci' => $citem_k));} else { echo replaceParam(array("ci" => $search_ci_str.$citem_k));}?>" <?php if (in_array($citem_k,$search_ci_arr)) {?>class="selected"<?php }?>><i></i><?php echo $citem_v['cti_name']; ?></a></li>
            <?php }?>
            <?php }?>
          </ul>
        </div>-->
        <!--<div class="nch-sortbar-location">商品所在地：
          <div class="select-layer">
            <div class="holder"><em nc_type="area_name">不限地区</em></div>
            <div class="selected"><a nc_type="area_name">不限地区</a></div>
            <i class="direction"></i>
            <ul class="options">
            	{include file="shop/common/goods_class_area" /}
            </ul>
          </div>
        </div>-->
        <div class="pagination"> <?php echo $show_page; ?> </div>
      </nav>

      <!-- 商品列表循环  -->
      {include file="shop/common/goods_squares" /}
      <div class="tc mt20 mb20">
        <div class="pagination"> <?php echo $show_page; ?> </div>
      </div>
   

    <!-- 猜你喜欢 -->
    <div id="guesslike_div" style="width:1200px;"></div>
  </div>
</div>
<script src="__SITE_RESOURCE__/js/waypoints.js"></script> 
<script src="__SHOP_RESOURCE__/js/search_category_menu.js"></script> 
<script type="text/javascript" src="__SITE_RESOURCE__/js/fly/jquery.fly.min.js" charset="utf-8"></script> 
<!--[if lt IE 10]>
<script type="text/javascript" src="__SITE_RESOURCE__/js/fly/requestAnimationFrame.js" charset="utf-8"></script>
<![endif]-->
<script src="__SITE_RESOURCE__/js/waypoints.js"></script>
<script>
$(function(){
 //浮动导航  waypoints.js
    $('#main-nav-holder').waypoint(function(event, direction) {
        $(this).parent().toggleClass('sticky', direction === "down");
        event.stopPropagation();
    });
    //浏览历史处滚条
	$('#nchSidebarViewed').perfectScrollbar({suppressScrollX:true});
  	//猜你喜欢
	$('#guesslike_div').load('<?php echo url('shop/Search/get_guesslike'); ?>', function(){
        $(this).show();
    });

    //复选框筛选
    $("[nc_type='more-filter']").mouseover(function(){
        $("[nc_type='more-filter']").addClass('box-hover');
    });
    $("[nc_type='more-filter']").mouseout(function(){
        $("[nc_type='more-filter']").removeClass('box-hover');
    });
    
});
<?php if(intval(I('param.area_id')) > 0){?>
$(function(){
    // 选择地区后的地区显示
    $('[nc_type="area_name"]').html('<?php echo $province_array[intval(I('param.area_id'))]; ?>');
});
<?php }?>
</script>
{/block}